
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- <script src="vue-2.4.0.js" ></script> -->
    <script src="vue1026.js" ></script>
    
  
   
</head>

<style>

    #tab{
        width:800px;
        border-collapse: collapse;
        margin: 20px auto;
    }
    #tab th{
        background-color: #0094ff;
        color: white;
        border: solid  black 2px;
        text-align: center;
    }

    #tab td{
        border: solid  black 2px;
        text-align: center;
    }

    .inp{
        width:800px;
        border-collapse: collapse;
        margin: 20px auto;
    }

 
</style>
<body>
       
    <div id="app">
            <login></login>
            
    </div>
</body>

<script>
    
   
    //注册组件2.0
    Vue.component('login',{
        template:'<h1>登入</h1>',
    });

    var vm = new Vue({
        el:'#app',
        data:{
         
        },
      
    });

</script>
</html>